//
//  SYDAmapLocation.h
//  PinGJByOwnerSide
//
//  Created by lantaiyuan on 2017/9/5.
//  Copyright © 2017年 lantaiyuan. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^SystemLocationSuccessBlock)(NSString * cityName);

typedef void(^LocationAuthorBlock)(SYDCLLocationManager * locationManager, BOOL canServer);

typedef void(^LocationFailedBlock)(void);

@interface SYDAmapLocation : UIView
@property (nonatomic, copy) LocationAuthorBlock locationAuthorBlock;

@property (nonatomic, copy) SystemLocationSuccessBlock systemLocationSuccessBlock;

@property (nonatomic, copy) LocationFailedBlock locationFailedBlock;

+ (instancetype)shareLocationTool;

/** 单次定位 */
- (void)singleLocationWithcompletionBlock:(AMapLocatingCompletionBlock)completionBlock;

/** 持续定位 */
- (void)continueLocation;

/** 停止持续定位 */
- (void)stopContinueLocation;
@end
